//
//  MVTableViewCell.m
//  MusicPlayer
//
//  Created by dlios on 15-6-1.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//



#define Width [UIScreen mainScreen].bounds.size.width
#define Height [UIScreen mainScreen].bounds.size.height

#import "MVTableViewCell.h"

@implementation MVTableViewCell


- (void)dealloc
{
    [_timaLabel release];
    [_timaLabe1 release];
    [_introLabel  release];
    [_tag1 release];
    [_tag2 release];
    [_gray release];
    [super dealloc];
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        self.timaLabel = [[UILabel alloc] initWithFrame:CGRectMake(15/375.0*Width, 0, 45/375.0*Width, 45/667.0*Height)];
      
        _timaLabel.font = [UIFont systemFontOfSize:30/375.0*Width];
        [self.contentView addSubview:_timaLabel];
        [_timaLabel release];
        
        self.gray = [[UILabel alloc] initWithFrame:CGRectMake(10/375.0*Width, 37/667.0*Height, 45/375.0*Width, 2/667.0*Height)];
        self.gray.backgroundColor = [UIColor lightGrayColor];
        [self.contentView addSubview:_gray];
        [_gray release];
        
        self.timaLabe1 = [[UILabel alloc] initWithFrame:CGRectMake(25/375.0*Width, 35/667.0*Height, 30/375.0*Width, 30/667.0*Height)];
//        _timaLabe1.backgroundColor = [UIColor yellowColor];
        _timaLabe1.font = [UIFont systemFontOfSize:22/375.0*Width];
        [self.contentView addSubview:_timaLabe1];
        [_timaLabe1 release];
        
        self.introLabel = [[UILabel alloc] initWithFrame:CGRectMake(65/375.0*Width, 0, 300/375.0*Width, 50/667.0*Height)];
        _introLabel.numberOfLines = 0;
        _introLabel.font = [UIFont systemFontOfSize:14];
        
        [self.contentView addSubview:_introLabel];
        [_introLabel release];
        
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10/375.0*Width, 70/667.0*Height, (self.contentView.frame.size.width+25)/375.0*Width , 200/667.0*Height)];
   
        _image.layer.cornerRadius = 9;
        _image.clipsToBounds = YES;
        [self.contentView addSubview:self.image];
        [_image release];
        
        self.tag1 = [[UILabel alloc] initWithFrame:CGRectMake(70/375.0*Width, 45/667.0*Height, 50/375.0*Width, 20/667.0*Height)];
        
        self.tag1.font = [UIFont systemFontOfSize:12/375.0*Width];
        _tag1.textAlignment =NSTextAlignmentCenter;
        _tag1.layer.cornerRadius = 9;
        _tag1.clipsToBounds = YES;
        
        [self.contentView addSubview:self.tag1];
        [_tag1 release];
        
        self.tag2 = [[UILabel alloc] initWithFrame:CGRectMake(130/375.0*Width, 45/667.0*Height, 50/375.0*Width, 20/667.0*Height)];
        self.tag2.font = [UIFont systemFontOfSize:12];
        _tag2.textAlignment = NSTextAlignmentCenter;
        _tag2.layer.cornerRadius = 9;
        _tag2.clipsToBounds = YES;
       
        [self.contentView addSubview:self.tag2];
        [_tag2 release];
        
        
        
        
        
        
        
        
        
        
        
        
        
    }
    
    return self;
    
    
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
